APPNAME = pub
LIBNAME1 = mosquitto
LIBNAME2 = sqlite3
LIBPATH = `pwd`/../lib/sqlite3/

CFLAGS+= -I${LIBPATH}
LDFLAGS+= -L${LIBPATH}
CC = gcc

all:
	${CC} *.c -o ${APPNAME} -l${LIBNAME1} -l${LIBNAME2} ${CFLAGS} ${LDFLAGS} -Wall -g

install:
	cp ${APPNAME} ../bin/

clean:
	rm  ${APPNAME}
